﻿#include <QCoreApplication>

#include "car.h"
#include "robot.h"
#include "airplane.h"

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    Car* car = new Car();
    Robot* robot = new Robot(car);

    robot->move();
    robot->say();

    Airplane* airplane = new Airplane(car);
    airplane->move();
    airplane->fly();

    delete robot;
    delete airplane;
    delete car;

    return a.exec();
}
